﻿<!DOCTYPE html>
<html>
  <head>
    <title>就业信息</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <link href="resources/resources/css/jquery-ui-themes.css" type="text/css" rel="stylesheet"/>
    <link href="resources/resources/css/axure_rp_page.css" type="text/css" rel="stylesheet"/>
    <link href="resources/data/styles.css" type="text/css" rel="stylesheet"/>
    <link href="resources/files/就业信息/styles.css" type="text/css" rel="stylesheet"/>
    <link href="resources/files/个人信息/styles.css" type="text/css" rel="stylesheet"/>
    <script src="resources/resources/scripts/jquery-1.7.1.min.js"></script>
    <script src="resources/resources/scripts/jquery-ui-1.8.10.custom.min.js"></script>
    <style>
        #u512_input {
          position:absolute;
          left:0px;
          top:0px;
          width:420px;
          height:25px;
          font-family:'Arial Normal', 'Arial';
          font-weight:400;
          font-style:normal;
          font-size:13px;
          text-decoration:none;
          color:#000000;
          text-align:left;
        }
        #u30_div {
          border-width:0px;
          position:absolute;
          left:0px;
          top:0px;
          width:87px;
          height:25px;
          background:inherit;
          box-sizing:border-box;
          border-width:1px;
          border-style:solid;
          border-color:rgba(121, 121, 121, 1);
          border-radius:0px;
          -moz-box-shadow:none;
          -webkit-box-shadow:none;
          box-shadow:none;
        }
        #u172_div {
          border-width:0px;
          position:absolute;
          left:0px;
          top:0px;
          width:103px;
          height:25px;
          background:inherit;
          background-color:rgba(102, 102, 255, 1);
          box-sizing:border-box;
          border-width:1px;
          border-style:solid;
          border-color:rgba(121, 121, 121, 1);
          border-radius:0px;
          -moz-box-shadow:none;
          -webkit-box-shadow:none;
          box-shadow:none;
        }
    </style>
  </head>
  <body>
    <div id="base" class="">
    <form method="post" id="form">
      <!-- Unnamed (矩形) -->
      <div id="u493" class="ax_default box_1">
        <div id="u493_div" class=""></div>
      </div>
      <div id="yin">
        <!-- Unnamed (矩形) -->
        <div id="u29" class="ax_default box_1">
                <div id="u29_div" class=""></div>
                <div id="u29_text" class="text ">
                    <p><span>流动人口服务管理系统</span></p>
                </div>
            </div>

            <!-- Unnamed (矩形) -->
            <div id="u30" class="ax_default box_1">
                <div id="u30_div" class=""></div>
                <div id="u30_text" class="text ">
                    <p><span onclick="toPersonalMessage()">个人信息</span></p>
                </div>
            </div>

            <!-- Unnamed (矩形) -->
            <div id="u171" class="ax_default box_1">
                <div id="u171_div" class=""></div>
                <div id="u171_text" class="text ">
                    <p><span onclick="toSpouse()">配偶信息</span></p>
                </div>
            </div>

            <!-- Unnamed (矩形) -->
            <div id="u31" class="ax_default box_1">
                <div id="u31_div" class=""></div>
                <div id="u31_text" class="text ">
                    <p><span onclick="toFamilyMember()">同住家庭成员</span></p>
                </div>
            </div>

            <!-- Unnamed (矩形) -->
            <div id="u32" class="ax_default box_1">
                <div id="u32_div" class=""></div>
                <div id="u32_text" class="text ">
                    <p><span onclick="toFamilyPlanning()">计生信息</span></p>
                </div>
            </div>


            <!-- Unnamed (矩形) -->
            <div id="u172" class="ax_default box_1">
                <div id="u172_div" class=""></div>
                <div id="u172_text" class="text ">
                    <p><span>就业信息</span></p>
                </div>
            </div>

            <!-- Unnamed (矩形) -->
            <div id="u81" class="ax_default box_1">
                <div id="u81_div" class=""></div>
                <div id="u81_text" class="text ">
                    <p><span onclick="toDwellMessage()">居住信息</span></p>
                </div>
            </div>



        <!-- Unnamed (水平线) -->
        <div id="u170" class="ax_default line">
            <img id="u170_img" class="img " src="resources/images/个人信息/u170.png"/>
        </div>
      </div>


      <!-- Unnamed (矩形) -->
      <div id="u495" class="ax_default box_1">
        <div id="u495_div" class=""></div>
        <div id="u495_text" class="text ">
          <p><span>用工单位名称：</span></p>
        </div>
      </div>

      <!-- 用工单位名称 (文本框) -->
      <div id="u496" class="ax_default text_field">
        <input id="u496_input" type="text" name="unitName" value=""/>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u497" class="ax_default box_1">
        <div id="u497_div" class=""></div>
        <div id="u497_text" class="text ">
          <p><span>单位类型：</span></p>
        </div>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u498" class="ax_default box_3">
        <div id="u498_div" class=""></div>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u499" class="ax_default box_1">
        <div id="u499_div" class=""></div>
        <div id="u499_text" class="text ">
          <p><span>版权所有：公安局</span></p>
        </div>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u500" class="ax_default radio_button">
        <label for="u500_input" style="position: absolute; left: 0px;">
          <div id="u500_text" class="text ">
            <p><span>国营</span></p>
          </div>
        </label>
        <input id="u500_input" type="radio" value="56" name="theUnitType"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u501" class="ax_default radio_button">
        <label for="u501_input" style="position: absolute; left: 0px;">
          <div id="u501_text" class="text ">
            <p><span>民营</span></p>
          </div>
        </label>
        <input id="u501_input" type="radio" value="57" name="theUnitType"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u502" class="ax_default radio_button">
        <label for="u502_input" style="position: absolute; left: 0px;">
          <div id="u502_text" class="text ">
            <p><span>事业</span></p>
          </div>
        </label>
        <input id="u502_input" type="radio" value="58" name="theUnitType"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u503" class="ax_default radio_button">
        <label for="u503_input" style="position: absolute; left: 0px;">
          <div id="u503_text" class="text ">
            <p><span>外企</span></p>
          </div>
        </label>
        <input id="u503_input" type="radio" value="59" name="theUnitType"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u504" class="ax_default radio_button">
        <label for="u504_input" style="position: absolute; left: 0px;">
          <div id="u504_text" class="text ">
            <p><span>个体</span></p>
          </div>
        </label>
        <input id="u504_input" type="radio" value="60" name="theUnitType"/>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u505" class="ax_default box_1">
        <div id="u505_div" class=""></div>
        <div id="u505_text" class="text ">
          <p><span>单位地址：</span></p>
        </div>
      </div>

      <!-- 单位地址 (文本框) -->
      <div id="u506" class="ax_default text_field">
        <select id="u506_input" name="city" type="text" onchange="loadNowCountyByCity()">
            <option value='0' >请选择市：</option>
        </select>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u507" class="ax_default box_1">
        <div id="u507_div" class=""></div>
        <div id="u507_text" class="text ">
          <p><span>市</span></p>
        </div>
      </div>

      <!-- Unnamed (文本框) -->
      <div id="u508" class="ax_default text_field">
        <select id="u508_input" name="county" type="text" onchange="loadNowTownshipByCounty()">
            <option value='0' >请选择县：</option>
        </select>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u509" class="ax_default box_1">
        <div id="u509_div" class=""></div>
        <div id="u509_text" class="text ">
          <p><span>县</span></p>
        </div>
      </div>

      <!-- Unnamed (文本框) -->
      <div id="u510" class="ax_default text_field">
        <select id="u510_input" name="town" type="text" >
            <option value='0' >请选择镇：</option>
        </select>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u511" class="ax_default box_1">
        <div id="u511_div" class=""></div>
        <div id="u511_text" class="text ">
          <p><span>镇</span></p>
        </div>
      </div>

      <!-- Unnamed (文本框) -->
      <div id="u512" class="ax_default text_field">
        <input id="u512_input" type="text" value=""/>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u517" class="ax_default box_1">
        <div id="u517_div" class=""></div>
        <div id="u517_text" class="text ">
          <p><span>门楼详址</span></p>
        </div>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u518" class="ax_default box_1">
        <div id="u518_div" class=""></div>
        <div id="u518_text" class="text ">
          <p><span>组织机构代码：</span></p>
        </div>
      </div>

      <!-- Unnamed (文本框) -->
      <div id="u519" class="ax_default text_field">
        <input id="u519_input" type="text" placeholder="王五" name="method"/>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u520" class="ax_default box_1">
        <div id="u520_div" class=""></div>
        <div id="u520_text" class="text ">
          <p><span>法人代表：</span></p>
        </div>
      </div>

      <!-- Unnamed (文本框) -->
      <div id="u521" class="ax_default text_field">
        <input id="u521_input" type="text" value="" maxlength="11" onkeyup = "value=value.replace(/[^\d]/g,'')" name="contactPhoneNumber"/>
      </div>



      <!-- Unnamed (文本框) -->
      <div id="u528" class="ax_default text_field">
        <input id="u528_input" type="text" value="" name="organizationCode"/>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u529" class="ax_default box_1">
        <div id="u529_div" class=""></div>
        <div id="u529_text" class="text ">
          <p><span>联系电话：</span></p>
        </div>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u530" class="ax_default box_1">
        <div id="u530_div" class=""></div>
        <div id="u530_text" class="text ">
          <p><span>劳动合同：</span></p>
        </div>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u531" class="ax_default radio_button">
        <label for="u531_input" style="position: absolute; left: 0px;">
          <div id="u531_text" class="text ">
            <p><span>1年</span></p>
          </div>
        </label>
        <input id="u531_input" type="radio" value="61" name="theLaborContract"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u532" class="ax_default radio_button">
        <label for="u532_input" style="position: absolute; left: 0px;">
          <div id="u532_text" class="text ">
            <p><span>2年</span></p>
          </div>
        </label>
        <input id="u532_input" type="radio" value="62" name="theLaborContract"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u533" class="ax_default radio_button">
        <label for="u533_input" style="position: absolute; left: 0px;">
          <div id="u533_text" class="text ">
            <p><span>3年</span></p>
          </div>
        </label>
        <input id="u533_input" type="radio" value="63" name="theLaborContract"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u534" class="ax_default radio_button">
        <label for="u534_input" style="position: absolute; left: 0px;">
          <div id="u534_text" class="text ">
            <p><span>3年以上</span></p>
          </div>
        </label>
        <input id="u534_input" type="radio" value="64" name="theLaborContract"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u535" class="ax_default radio_button">
        <label for="u535_input" style="position: absolute; left: 0px;">
          <div id="u535_text" class="text ">
            <p><span>未签</span></p>
          </div>
        </label>
        <input id="u535_input" type="radio" value="65" name="theLaborContract"/>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u536" class="ax_default box_1">
        <div id="u536_div" class=""></div>
        <div id="u536_text" class="text ">
          <p><span>单位编号;</span></p>
        </div>
      </div>

      <!-- Unnamed (复选框) -->
      <div id="u537" class="ax_default checkbox">
        <label for="u537_input" style="position: absolute; left: 0px;">
          <div id="u537_text" class="text ">
            <p><span>养老保险</span></p>
          </div>
        </label>
        <input id="u537_input" type="checkbox" value="66" name="ginsengIs"/>
      </div>

      <!-- Unnamed (复选框) -->
      <div id="u538" class="ax_default checkbox">
        <label for="u538_input" style="position: absolute; left: 0px;">
          <div id="u538_text" class="text ">
            <p><span>医疗保险</span></p>
          </div>
        </label>
        <input id="u538_input" type="checkbox" value="67" name="ginsengIs"/>
      </div>

      <!-- Unnamed (复选框) -->
      <div id="u539" class="ax_default checkbox">
        <label for="u539_input" style="position: absolute; left: 0px;">
          <div id="u539_text" class="text ">
            <p><span>失业保险</span></p>
          </div>
        </label>
        <input id="u539_input" type="checkbox" value="68" name="ginsengIs"/>
      </div>

      <!-- Unnamed (复选框) -->
      <div id="u540" class="ax_default checkbox">
        <label for="u540_input" style="position: absolute; left: 0px;">
          <div id="u540_text" class="text ">
            <p><span>工伤保险</span></p>
          </div>
        </label>
        <input id="u540_input" type="checkbox" value="69" name="ginsengIs"/>
      </div>

      <!-- Unnamed (复选框) -->
      <div id="u541" class="ax_default checkbox">
        <label for="u541_input" style="position: absolute; left: 0px;">
          <div id="u541_text" class="text ">
            <p><span>生育保险</span></p>
          </div>
        </label>
        <input id="u541_input" type="checkbox" value="70" name="ginsengIs"/>
      </div>

      <!-- Unnamed (文本框) -->
      <div id="u542" class="ax_default text_field">
        <input id="u542_input" type="text" value="" name="theUnitNumber"/>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u543" class="ax_default box_1">
        <div id="u543_div" class=""></div>
        <div id="u543_text" class="text ">
          <p><span>单位社保号:</span></p>
        </div>
      </div>

      <!-- Unnamed (文本框) -->
      <div id="u544" class="ax_default text_field">
        <input id="u544_input" type="text" value="" name="socialSecurityNo"/>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u545" class="ax_default box_1">
        <div id="u545_div" class=""></div>
        <div id="u545_text" class="text ">
          <p><span>用工人数：</span></p>
        </div>
      </div>

      <!-- Unnamed (文本框) -->
      <div id="u546" class="ax_default text_field">
        <input id="u546_input" type="text" value="" onkeyup="value=value.replace(/[^\d]/g,'')" name="theNumberOfEmployment"/>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u547" class="ax_default box_1">
        <div id="u547_div" class=""></div>
        <div id="u547_text" class="text ">
          <p><span>职称：</span></p>
        </div>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u548" class="ax_default radio_button">
        <label for="u548_input" style="position: absolute; left: 0px;">
          <div id="u548_text" class="text ">
            <p><span>农林牧渔业</span></p>
          </div>
        </label>
        <input id="u548_input" type="radio" value="71" name="industryCategories"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u549" class="ax_default radio_button">
        <label for="u549_input" style="position: absolute; left: 0px;">
          <div id="u549_text" class="text ">
            <p><span>采矿业</span></p>
          </div>
        </label>
        <input id="u549_input" type="radio" value="72" name="industryCategories"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u550" class="ax_default radio_button">
        <label for="u550_input" style="position: absolute; left: 0px;">
          <div id="u550_text" class="text ">
            <p><span>制造业</span></p>
          </div>
        </label>
        <input id="u550_input" type="radio" value="73" name="industryCategories"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u551" class="ax_default radio_button">
        <label for="u551_input" style="position: absolute; left: 0px;">
          <div id="u551_text" class="text ">
            <p><span>电力燃气及水的生产供应</span></p>
          </div>
        </label>
        <input id="u551_input" type="radio" value="74" name="industryCategories"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u552" class="ax_default radio_button">
        <label for="u552_input" style="position: absolute; left: 0px;">
          <div id="u552_text" class="text ">
            <p><span>建筑业</span></p>
          </div>
        </label>
        <input id="u552_input" type="radio" value="75" name="industryCategories"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u553" class="ax_default radio_button">
        <label for="u553_input" style="position: absolute; left: 0px;">
          <div id="u553_text" class="text ">
            <p><span>金融</span></p>
          </div>
        </label>
        <input id="u553_input" type="radio" value="80" name="industryCategories"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u554" class="ax_default radio_button">
        <label for="u554_input" style="position: absolute; left: 0px;">
          <div id="u554_text" class="text ">
            <p><span>房地产</span></p>
          </div>
        </label>
        <input id="u554_input" type="radio" value="81" name="industryCategories"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u555" class="ax_default radio_button">
        <label for="u555_input" style="position: absolute; left: 0px;">
          <div id="u555_text" class="text ">
            <p><span>租赁和商务服务业</span></p>
          </div>
        </label>
        <input id="u555_input" type="radio" value="82" name="industryCategories"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u556" class="ax_default radio_button">
        <label for="u556_input" style="position: absolute; left: 0px;">
          <div id="u556_text" class="text ">
            <p><span>科学研究技术服务和地质勘查</span></p>
          </div>
        </label>
        <input id="u556_input" type="radio" value="83" name="industryCategories"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u557" class="ax_default radio_button">
        <label for="u557_input" style="position: absolute; left: 0px;">
          <div id="u557_text" class="text ">
            <p><span>交通运输仓储邮政</span></p>
          </div>
        </label>
        <input id="u557_input" type="radio" value="76" name="industryCategories"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u558" class="ax_default radio_button">
        <label for="u558_input" style="position: absolute; left: 0px;">
          <div id="u558_text" class="text ">
            <p><span>信息传输计算机服务和软件</span></p>
          </div>
        </label>
        <input id="u558_input" type="radio" value="77" name="industryCategories"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u559" class="ax_default radio_button">
        <label for="u559_input" style="position: absolute; left: 0px;">
          <div id="u559_text" class="text ">
            <p><span>批发零售</span></p>
          </div>
        </label>
        <input id="u559_input" type="radio" value="78" name="industryCategories"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u560" class="ax_default radio_button">
        <label for="u560_input" style="position: absolute; left: 0px;">
          <div id="u560_text" class="text ">
            <p><span>住宿餐饮</span></p>
          </div>
        </label>
        <input id="u560_input" type="radio" value="79" name="industryCategories"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u561" class="ax_default radio_button">
        <label for="u561_input" style="position: absolute; left: 0px;">
          <div id="u561_text" class="text ">
            <p><span>水利环境和公共设施管理</span></p>
          </div>
        </label>
        <input id="u561_input" type="radio" value="84" name="industryCategories"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u562" class="ax_default radio_button">
        <label for="u562_input" style="position: absolute; left: 0px;">
          <div id="u562_text" class="text ">
            <p><span>居民服务和其他服务</span></p>
          </div>
        </label>
        <input id="u562_input" type="radio" value="85" name="industryCategories"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u563" class="ax_default radio_button">
        <label for="u563_input" style="position: absolute; left: 0px;">
          <div id="u563_text" class="text ">
            <p><span>教育</span></p>
          </div>
        </label>
        <input id="u563_input" type="radio" value="86" name="industryCategories"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u564" class="ax_default radio_button">
        <label for="u564_input" style="position: absolute; left: 0px;">
          <div id="u564_text" class="text ">
            <p><span>卫生社会保障和福利业</span></p>
          </div>
        </label>
        <input id="u564_input" type="radio" value="87" name="industryCategories"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u565" class="ax_default radio_button">
        <label for="u565_input" style="position: absolute; left: 0px;">
          <div id="u565_text" class="text ">
            <p><span>文化体育和娱乐业</span></p>
          </div>
        </label>
        <input id="u565_input" type="radio" value="88" name="industryCategories"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u566" class="ax_default radio_button">
        <label for="u566_input" style="position: absolute; left: 0px;">
          <div id="u566_text" class="text ">
            <p><span>公共管理和社会组织</span></p>
          </div>
        </label>
        <input id="u566_input" type="radio" value="89" name="industryCategories"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u567" class="ax_default radio_button">
        <label for="u567_input" style="position: absolute; left: 0px;">
          <div id="u567_text" class="text ">
            <p><span>国际组织</span></p>
          </div>
        </label>
        <input id="u567_input" type="radio" value="90" name="industryCategories"/>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u568" class="ax_default box_1">
        <div id="u568_div" class=""></div>
        <div id="u568_text" class="text ">
          <p><span>行业类别：</span></p>
        </div>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u569" class="ax_default radio_button">
        <label for="u569_input" style="position: absolute; left: 0px;">
          <div id="u569_text" class="text ">
            <p><span>初级职称</span></p>
          </div>
        </label>
        <input id="u569_input" type="radio" value="91" name="jobTitle"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u570" class="ax_default radio_button">
        <label for="u570_input" style="position: absolute; left: 0px;">
          <div id="u570_text" class="text ">
            <p><span>中级职称</span></p>
          </div>
        </label>
        <input id="u570_input" type="radio" value="92" name="jobTitle"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u571" class="ax_default radio_button">
        <label for="u571_input" style="position: absolute; left: 0px;">
          <div id="u571_text" class="text ">
            <p><span>高级职称</span></p>
          </div>
        </label>
        <input id="u571_input" type="radio" value="93" name="jobTitle"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u572" class="ax_default radio_button">
        <label for="u572_input" style="position: absolute; left: 0px;">
          <div id="u572_text" class="text ">
            <p><span>其他</span></p>
          </div>
        </label>
        <input id="u572_input" type="radio" value="94" name="jobTitle"/>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u573" class="ax_default box_1">
        <div id="u573_div" class=""></div>
        <div id="u573_text" class="text ">
          <p><span>职业技能登机：</span></p>
        </div>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u574" class="ax_default radio_button">
        <label for="u574_input" style="position: absolute; left: 0px;">
          <div id="u574_text" class="text ">
            <p><span>高级技师</span></p>
          </div>
        </label>
        <input id="u574_input" type="radio" value="95" name="crofessionalSkillOnBoard"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u575" class="ax_default radio_button">
        <label for="u575_input" style="position: absolute; left: 0px;">
          <div id="u575_text" class="text ">
            <p><span>技师</span></p>
          </div>
        </label>
        <input id="u575_input" type="radio" value="96" name="crofessionalSkillOnBoard"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u576" class="ax_default radio_button">
        <label for="u576_input" style="position: absolute; left: 0px;">
          <div id="u576_text" class="text ">
            <p><span>高级工</span></p>
          </div>
        </label>
        <input id="u576_input" type="radio" value="97" name="crofessionalSkillOnBoard"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u577" class="ax_default radio_button">
        <label for="u577_input" style="position: absolute; left: 0px;">
          <div id="u577_text" class="text ">
            <p><span>中级工</span></p>
          </div>
        </label>
        <input id="u577_input" type="radio" value="98" name="crofessionalSkillOnBoard"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u578" class="ax_default radio_button">
        <label for="u578_input" style="position: absolute; left: 0px;">
          <div id="u578_text" class="text ">
            <p><span>初级工</span></p>
          </div>
        </label>
        <input id="u578_input" type="radio" value="99" name="crofessionalSkillOnBoard"/>
      </div>

      <!-- Unnamed (单选按钮) -->
      <div id="u579" class="ax_default radio_button">
        <label for="u579_input" style="position: absolute; left: 0px;">
          <div id="u579_text" class="text ">
            <p><span>无职称、等级</span></p>
          </div>
        </label>
        <input id="u579_input" type="radio" value="100" name="crofessionalSkillOnBoard"/>
      </div>

      <!-- Unnamed (矩形) -->
      <div id="u580" class="ax_default box_1">
        <div id="u580_div" class=""></div>
        <div id="u580_text" class="text ">
          <p><span>职业：</span></p>
        </div>
      </div>

      <!-- Unnamed (文本框) -->
      <div id="u581" class="ax_default text_field">
        <input id="u581_input" type="text" placeholder="教师" name="career"/>
      </div>



      <!-- Unnamed (矩形) -->
      <div id="u583" class="ax_default button">
        <div id="u583_div" class=""></div>
        <div id="u583_text" class="text ">
          <p><span onclick="submitEmploymentInformation()">保存</span></p>
        </div>
      </div>



      <!-- Unnamed (矩形) -->
      <div id="u585" class="ax_default box_1">
        <div id="u585_div" class=""></div>
        <div id="u585_text" class="text ">
          <p><span>参保情况：</span></p>
        </div>
      </div>


      <input type="hidden" id="id">
    </form>
    </div>
  </body>
  <script>
    var id = "";
    var employmentMessageId = "";
    var dwellMessageId = "";
    var planingId = "";
    var spouse = "";
    var provinceCode = "";
    $(function() {
        id = location.href.split("personalId=")[1];
        if(id.includes("&")){
            id = id.split("&")[0];
        }
        $.ajax({
          url:"/findPersonalMessageById",
          data:{id:id},
          dataType:"json",
          type:"post",
          async:false,
          success:function(data) {
            employmentMessageId = data.employmentMessageId;
            dwellMessageId = data.dwellMessageId;
            planingId = data.familyPlanningId;
            spouse = data.spouse;
            provinceCode = data.nowInProvince;
          }
        })
        loadNowCityByProvince();
        if(employmentMessageId!=""&&employmentMessageId!=undefined&&employmentMessageId!=null){
            findEmploymentInformationById(employmentMessageId);
        }
    })
    /**
     * 不为空
     */
    function checkText(dom,reg,tip,tip2) {
        if(dom.val()==""||dom.val()==null){
            alert(tip);
            return false;
        }else if(!reg.test(dom.val())){
            alert(tip2);
            return false;
        }
        return true;
    }
    /**
     * 检查信息
     */
    function checkString() {
        if(!checkText($("#u521_input"),/^1[3456789]\d{9}$/,"手机号不能为空","手机格式错误")){
            return false;
        }
        if(!checkText($("#u519_input"),/^[\u4E00-\u9FA5\uf900-\ufa2d·\s]{2,20}$/,"法人不能为空","法人格式错误")){
            return false;
        }
        var unitName = $("#u496_input").val().length;
        var theUnitType = $("#u500_input").val().length;
        var city = $("#u506_input").val().length;
        var county = $("#u508_input").val().length;
        var town = $("#u510_input").val().length;
        var detail = $("#u512_input").val().length;
        if(unitName<=0||theUnitType<=0||city<=0||county<=0||town<=0||detail<=0){
            alert("请完善信息")
            return false;
        }
        return true;
    }
    /**
     * 根据id查询，填充数据
     */
    function findEmploymentInformationById(id) {
        $.ajax({
            url:"/findEmploymentInformationById",
            data:{id:id},
            dataType:"json",
            type:"post",
            async:false,
            success:function(data) {
                $("#id").val(id);
                $("input[name='unitName']").val(data.unitName);
                $.each($("input[name='theUnitType']"),function(index,item) {//遍历单选框
                    if($(item).val()==data.theUnitType){//如果为要选的值
                        $(item).attr("checked","checked");//赋值
                    }
                })
                var place = data.theUnitAddress.split("-");
                loadNowCityByProvince()
                var url = location.href; //获取url中"?"符后的字串
                var provinceCode = url.split("=")[2];
                if(provinceCode.includes("&")){
                    provinceCode = provinceCode.split("&")[0];
                }
                var cityCode = findCityByName(place[0],provinceCode);
                $("select[name='city']").val(findCityByName(place[0],provinceCode));
                loadNowCountyByCity();
                var countyCode = findCountyByName(place[1],cityCode)
                $("select[name='county']").val(countyCode);
                loadNowTownshipByCounty();
                $("select[name='town']").val(findTownByName(place[2],countyCode));
                $("#u512_input").val(place[3]);
                $("#u519_input").val(data.method);
                $.each($("input[name='theLaborContract']"),function(index,item) {
                    if($(item).val()==data.theLaborContract){//如果为要选的值
                        $(item).attr("checked","checked");//赋值
                    }
                })
                $("input[name='organizationCode']").val(data.organizationCode);
                $("input[name='contactPhoneNumber']").val(data.contactPhoneNumber);
                $("input[name='socialSecurityNo']").val(data.socialSecurityNo);
                $("input[name='theUnitNumber']").val(data.theUnitNumber);
                $("input[name='theNumberOfEmployment']").val(data.theNumberOfEmployment);
                $.each($("input[name='industryCategories']"),function(index,item) {
                    if($(item).val()==data.industryCategories){//如果为要选的值
                        $(item).attr("checked","checked");//赋值
                    }
                })
                var ginsengIs = data.ginsengIs.split(",")
                $.each($("input[name='ginsengIs']"),function(index,item) {
                    $.each(ginsengIs,function(index2,item2) {
                        if(item2==$(item).val()){//如果为要选的值
                            $(item).attr("checked","checked");//赋值
                        }
                    })
                })
                $.each($("input[name='jobTitle']"),function(index,item) {
                    if($(item).val()==data.jobTitle){//如果为要选的值
                        $(item).attr("checked","checked");//赋值
                    }
                })
                $.each($("input[name='crofessionalSkillOnBoard']"),function(index,item) {
                    if($(item).val()==data.crofessionalSkillOnBoard){//如果为要选的值
                        $(item).attr("checked","checked");//赋值
                    }
                })
                $("input[name='career']").val(data.career);
            }
        })
    }
    function findTownByName(name,countyCode) {
        var code = "";
        $.ajax({
            url:"/findTownByName",
            data:{name:name,countyCode:countyCode},
            async:false,
            type:"post",
            dataType:"json",
            success:function(data) {
                code = data;
            }
        })
        return code;
    }
    /**
     * 通过姓名查区code
     */
    function findCountyByName(name,cityCode) {
        var code = "";
        $.ajax({
            url:"/findCountyByName",
            data:{name:name,cityCode:cityCode},
            async:false,
            type:"post",
            dataType:"json",
            success:function(data) {
                code = data;
            }
        })
        return code;
    }
    /**
     *  通过姓名查市code
     */
    function findCityByName(name,provinceCode) {
        var code = "";
        $.ajax({
            url:"/findCityByName",
            data:{name:name,provinceCode:provinceCode},
            async:false,
            type:"post",
            dataType:"json",
            success:function(data) {
                code = data;
            }
        })
        return code;
    }

    /**
     * 跳转到个人信息，传个人信息id
     */
    function toPersonalMessage() {
        var url = location.href; //获取url中"?"符后的字串
        var personalId = url.split("=")[1].split("&")[0];
        if($("#id").val()!=null&&$("#id").val()!=""){
            window.location = "/toPersonalInformation?id="+personalId+"&employmentMessageId="+$("#id").val();
        }else {
            window.location = "/toPersonalInformation?id="+personalId;
        }
    }
    /**
     * 提交
     */
    function submitEmploymentInformation() {
        if(!checkString()){
            return;
        }
        var form = $("#form")[0];
        var formData = new FormData(form);
        var city = $("#u506_input option:selected").text();
        var county = $("#u508_input option:selected").text();
        var town = $("#u510_input option:selected").text();
        var detail = $("#u512_input").val();
        var theUnitAddress = city+"-"+county+"-"+town+"-"+detail;
        var url = location.href; //获取url中"?"符后的字串
        var personalId = url.split("=")[1].split("&")[0];
        formData.append("id",$("#id").val());
        formData.append("personalId",personalId);
        formData.append("theUnitAddress",theUnitAddress);
        $.ajax({
            url:"/getEmploymentInformation",
            dataType:"json",
            data:formData,
            type:"post",
            async:false,
            processData: false,
            contentType: false,
            success:function(data) {
                if(data!=""&&data!=null){
                    $("#id").val(data);
                    $.ajax({
                      url:"/updatePersonalInformation",
                      data:{id:personalId,employmentMessageId:data},
                      dataType:"json",
                      type:"post"
                    })
                    alert("添加成功");
                    toDwellMessage();
                }else {
                    alert("添加失败");
                }
            }
        })
    }
    /**
     * 现居
     * 根据县码获得所有镇
     */
    function loadNowTownshipByCounty() {
        var county = $("#u508_input").val();
        $.ajax({
            url:"/loadNowTownshipByCounty",
            dataType:"json",
            data:{county:county},
            type:"post",
            async:false,
            success:function(data) {
                var township = $("#u510_input");
                township.empty();
                var html = "<option value='0' >请选择镇：</option>";
                $.each(data,function(index,item) {
                    html+="<option value='"+item.code+"' >"+item.name+"</option>"
                });
                township.append(html);
            }
        })
    }
    /**
     * 现居
     * 根据市码获得所有县
     */
    function loadNowCountyByCity() {
        var city = $("#u506_input").val();
        $.ajax({
            url:"/loadNowCountyByCity",
            dataType:"json",
            data:{city:city},
            type:"post",
            async:false,
            success:function(data) {
                var county = $("#u508_input");
                county.empty();
                var html = "<option value='0' >请选择区：</option>";
                $.each(data,function(index,item) {
                    html+="<option value='"+item.code+"' >"+item.name+"</option>"
                });
                county.append(html);
            }
        })
    }
    /**
    * 现居
    * 根据省码获得所有市
    */
    function loadNowCityByProvince() {
        var url = location.href; //获取url中"?"符后的字串
        var provinceCode = url.split("=")[2];
        if(provinceCode.includes("&")){
            provinceCode = provinceCode.split("&")[0];
        }
        console.log(provinceCode);
        $.ajax({
            url:"/loadNowCityByProvince",
            dataType:"json",
            data:{province:provinceCode},
            type:"post",
            async:false,
            success:function(data) {
                var city = $("#u506_input");
                city.empty();
                var html = "<option value='0' >请选择市：</option>";
                $.each(data,function(index,item) {
                    html+="<option value='"+item.code+"' >"+item.name+"</option>"
                });
                city.append(html);
            }
        })
    }
    /**
     * 跳转到配偶信息，传递省码
     */
    function toSpouse() {
        if(spouse!=''&&spouse!=null){
            window.location = "/toSpouse?personalId="+id+"&spouse="+spouse;
            return;
        }
        window.location = "/toSpouse?personalId="+id;
    }
    /**
     * 跳转到居住信息，传递省码
     */
    function toDwellMessage() {
        if(dwellMessageId!=''&&dwellMessageId!=null){
            window.location = "/toDwellMessage?personalId="+id+"&provinceCode="+provinceCode+"&dwellMessageId="+dwellMessageId;
            return;
        }
        window.location = "/toDwellMessage?personalId="+id+"&provinceCode="+provinceCode;
    }
    /**
     * 跳转到计生信息，传递省码
     */
    function toFamilyPlanning() {
        if(planingId!=''&&planingId!=null){
            window.location = "/toFamilyPlanning?personalId="+id+"&provinceCode="+provinceCode+"&planingId="+planingId;
            return;
        }
        window.location = "/toFamilyPlanning?personalId="+id+"&provinceCode="+provinceCode;
    }
    /**
     * 跳转到成员信息，传递省码 TODO
     */
    function toFamilyMember() {
       window.location = "/toFamilyMember?personalId="+id;
    }
  </script>
</html>
